home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 January / macformat-033.iso / mac / Shareware City / Graphics / GifScan 1.6 / Sources / GSDrag.h < prev    next >
Encoding:
Text File  |  1995-10-04  |  930 b   |  34 lines  |  [TEXT/MMCC]

  1. // ======================================================================== 
  2. //    DragManagerModule.c            © 1994 Gregory H. Dow. All rights reserved. 
  3. // ======================================================================== 
  4.  
  5. #ifndef __DRAG__
  6. #include <Drag.h>
  7. #endif
  8.  
  9. #ifndef __WINDOWS__
  10. #include <Windows.h>
  11. #endif
  12.  
  13. typedef OSErr (*DragItemReceiveFunc)(WindowRef, DragReference, ItemReference);
  14.  
  15. typedef struct    DragInfoRecord {
  16.     WindowPtr                window;
  17.     FlavorType                flavor;
  18.     RgnHandle                receiveRgn;
  19.     DragItemReceiveFunc        receiveFunc;
  20.     DragTrackingHandlerUPP    dragTrackingProc;
  21.     DragReceiveHandlerUPP    dragReceiveProc;
  22. } DragInfoRecord, **DragInfoHandle;
  23.  
  24.  
  25. void     AdjustDragRgn(void);
  26. Boolean    IsDragManagerInstalled(void);
  27. OSErr    InitDragInfo(DragInfoHandle dragInfo);
  28. void    KillDragInfo(DragInfoHandle dragInfo);
  29. OSErr    ReceiveHFSDrag(WindowRef, DragReference, ItemReference);
  30.  
  31. Boolean HandleDragSelection(EventRecord *, RgnHandle);
  32.  
  33.  
  34.